package com.example.weight.model;

import java.io.Serializable;

public class Station implements Serializable {
    private int id;
    private String name;
    private String factory;
    private String position;

    @Override
    public String toString() {
        return name;
    }

    public Station(int id, String name, String factory, String position) {
        this.id = id;
        this.name = name;
        this.factory = factory;
        this.position = position;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }
}
